<% if @users and not @users.empty? %>
<table class="users" border="0" cellpadding="5" cellspacing="1">
  <tr class="header">
    <th>Nombre</th> <th>Edad</th> <th>Genero</th> <th>Localización</th>
  </tr>
  <%  @users.each do |user| %>
  <tr class="<%= cycle('odd', 'even') %>">
    <td><%= link_to user.name, profile_for(user) %>
    </td>
    <td><%= user.spec.age %></td>
    <td><%= user.spec.gender  %></td>
    <td><%= user.spec.location %></td>
  </tr>
  <% end %>
  <% if paginated? %>
  <tr>
    <td colspan="4" align="right">
    	<%= paginate @spec %>
    Páginas: <%= pagination_links(@pages, :params => params) %>
    </td>
  </tr>
  <% end %>
</table>
<% end %>